package com.hzxy.yiyid.web.common.base;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * @ClassName BaseController
 * @Description TOOD
 * @Author RAICOM2023
 * @Date 2023/2/1 16:08
 * @Version 1.0
 **/
public class BaseController {
    @Resource
    public HttpServletRequest request;

    public HttpServletRequest getRequest() {
        return request;
    }

    public void setRequest(HttpServletRequest request) {
        this.request = request;
    }

    public HttpSession getSession() {
        return request.getSession(false);
    }
}
